import http from '@/utils/request.js'
import API from '@/config/api.config'

// 用户服务接口
const userService = {
  // 用户登录
  get_referrer: () => http.request({
    url:API.user.referrer,
    method: 'GET'
  }),
  self: () => http.request({
    url:API.user.self,
    method: 'GET'
  }),
  avatar: avatar_url => http.request({
    url:API.user.avatar,
    method: 'POST',
    data:{
      avatar_url
    }
  })
};

export default userService